import Layout from '@/layout'
const customerRouter = {
  path: '/customer/list',
  component: Layout,
  name: 'customer-list',
  meta: {
    title: '客户',
    icon: 'customer',
    permissions: ['customer.query']
  },
  children: [
    {
      path: '/customer/list',
      component: () => import('@/views/customer/list'),
      name: 'company-list',
      meta: {title: '客户管理', icon: 'customer'
        // ,permissions: ['company.query']
      },
    },

    // 注册路由
    {
      path: '/customer/list',
      component: () => import('@/views/customer/list'),
      name: 'company-list',
      meta: { title: '客户资料', icon: 'sub_customer'},
      hidden: true
    },
    {
      path: '/customer/add',
      component: () => import('@/views/customer/add'),
      name: 'customer-add',
      meta: { title: '新增客户', icon: 'customer'},
      hidden: true
    },
    {
      path: '/customer/edit',
      component: () => import('@/views/customer/edit'),
      name: 'customer-edit',
      meta: { title: '修改客户', icon: 'sub_customer'},
      hidden: true
    },

    {
      path: '/customer/detail',
      component: () => import('@/views/customer/detail'),
      name: 'customer-detail',
      meta: { title: '客户详情', icon: 'sub_customer'},
      hidden: true
    },
  ]
}
export default customerRouter
